QT       += core gui widgets sql

CONFIG += c++17
CONFIG += qt release

# 编译器标志
QMAKE_CXXFLAGS += -std=c++17
QMAKE_CXXFLAGS += -fpermissive
QMAKE_CXXFLAGS += -w
QMAKE_CXXFLAGS += -DNDEBUG

# 链接器标志
QMAKE_LFLAGS += -static-libgcc -static-libstdc++

# You can make your code fail to compile if it uses deprecated APIs.
# In order to do so, uncomment the following line.
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000    # disables all the APIs deprecated before Qt 6.0.0

SOURCES += \
    main.cpp \
    mainwindow.cpp \
    rule.cpp \
    inferenceengine.cpp \
    knowledgebase.cpp \
    rulemanager.cpp \
    factmanager.cpp \
    databasemanager.cpp \
    managementdialog.cpp

HEADERS += \
    mainwindow.h \
    rule.h \
    inferenceengine.h \
    knowledgebase.h \
    rulemanager.h \
    factmanager.h \
    databasemanager.h \
    managementdialog.h

FORMS += \
    mainwindow.ui \
    managementdialog.ui

# Default rules for deployment.
qnx: target.path = /tmp/$${TARGET}/bin
else: unix:!android: target.path = /opt/$${TARGET}/bin
!isEmpty(target.path): INSTALLS += target
